import request from '@/utils/request'

export function getIncidentList(query) {
  return request({
    url: '/foundation/incident/getList',
    method: 'post',
    data: query
  })
}
export function getIncidentUsableList(data) {
  return request({
    url: '/foundation/incident/getUsableList',
    method: 'post',
    data: data
  })
}


export function getIncident(id) {
  return request({
    url: '/foundation/incident/getDetail',
    method: 'post',
    data: id
  })
}

export function saveIncident(id) {
  return request({
    url: '/foundation/incident/save',
    method: 'post',
    data: id
  })
}

export function removeIncidentByID(id) {
  return request({
    url: '/foundation/incident/remove',
    method: 'post',
    data: id
  })
}

export function changeStatusByIncidentID(formdata) {
  return request({
    url: '/foundation/incident/change-status',
    method: 'post',
    data: formdata
  })
}

export function getIncidentAvabile(query) {
  return request({
    url: '/foundation/incident/getAvailable',
    method: 'post',
    data: query
  })
}

